﻿@model Unijovem.UI.Models.PessoaModel
@{
    ViewBag.Title = "Manter";
}
<h2>
    Manter</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <div class="editor-label">
        @Html.LabelFor(model => model.NomeCompleto)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.NomeCompleto)
        @Html.ValidationMessageFor(model => model.NomeCompleto)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.DataNascimento)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.DataNascimento)
        @Html.ValidationMessageFor(model => model.DataNascimento)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Sexo)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Sexo)
        @Html.ValidationMessageFor(model => model.Sexo)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Email)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Email)
        @Html.ValidationMessageFor(model => model.Email)
    </div>
        
    <input type="submit" value="Salvar" />
}
@if (Model != null)
{
    @Html.HiddenFor(model => model.Id)
}
